package com.ruoyi.travel.service.impl;

import com.ruoyi.travel.mapper.TravelIndexPictureMapper;
import com.ruoyi.travel.service.ITravelIndexPictureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class TravelIndexPictureServiceImpl implements ITravelIndexPictureService {
    @Autowired
    private TravelIndexPictureMapper travelIndexPictureMapper;
    @Override
    public Map<String, BigDecimal> getClientSourceCount() {
        return travelIndexPictureMapper.countClientsSource();
    }
    @Override
    public List<Map<String, Object>> getMonthlyConsultCount() {
        return travelIndexPictureMapper.countConsultByMonth();
    }


    @Override
    public Map<String, BigDecimal> getOrderStatusCount() {
        return travelIndexPictureMapper.getOrderStatusCount();
    }

    @Override
    public List<Map<String, Object>> getMonthlyOrderStats() {
        return travelIndexPictureMapper.getMonthlyOrderStats();
    }

    @Override
    public List<Map<String, Object>> getDesignerOrderData() {
        return travelIndexPictureMapper.getDesignerOrderData();
    }
}
